<?php
$this->display('public/header.phtml', array(
    "title"    => (empty($admin) ? "Add" : "Edit") . " Staff",
    "styles"   => '',
    "crumbArr" => array(
        array("href" => "/admin/admin/index/", "title" => "Staff list"),
        array("title" => (empty($admin) ? "Add" : "edit") . " Staff"),
    ),
));
?>
<!--BEGIN CONTENT-->
<div class="row">
    <div class="col-xs-12">            
        <!-- PAGE CONTENT BEGINS -->
        <form class="form-horizontal" method="post" role="form">

            <div id="admin_name" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> Username </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <input name="admin_name" type="text" value="" />
                    </span>
                </div>
            </div>

            <div id="admin_email" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> Email Address </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <input name="admin_email" type="text" placeholder="Login Id" value="" class="width-60" readonly="readonly" />
                    </span>
                </div>
            </div>

            <div id="admin_password" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> Password </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <input name="admin_password" type="password" placeholder="If won't change,let it empty" value="" autocomplete="off" />
                    </span>
                </div>
            </div>

            <div id="status" class="form-group">
                <label class="col-xs-12 col-sm-3 col-md-3 control-label no-padding-right"> Status </label>
                <div class="col-xs-12 col-sm-5">
                    <span class="block input-icon input-icon-right">
                        <select name="status" class="col-xs-10 col-sm-5">
                            <?php foreach ($statusConfig as $key => $value): ?>
                                <option value="<?php echo $key; ?>"><?php echo $value['name']; ?></option>
                            <?php endforeach; ?>
                        </select>
                    </span>
                </div>
            </div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        Submit
                    </button>
                </div>
            </div>

            <?php $this->display("public/form.phtml"); ?>
        </form>

    </div><!-- /.col -->
</div><!-- /.row -->

<?php
$this->display("public/footer.phtml", array(
    "scripts" => ''
));
?>
<script type="text/javascript">
    $(document).ready(function() {
//        setTimeout(function() {
//            $("[name='admin_password']").val("")
//        }, 500);
    });
</script>
<?php $this->display("public/edit_footer.phtml"); ?>
<?php $this->display("public/footer_body.phtml"); ?>